<template>
  <div class="common-node">
    <div class="node-title">进入流程设置</div>
    <div class="container-1">
      <div class="flex-start-center">
        <f-icon icon="Filter" size="14" type="element" />
        <div class="step-label">进入条件</div>
      </div>
      <div class="step-desc">定时-单次 2024-11-08 14:31:00</div>
    </div>
    <div class="container-2">
      <div class="flex-start-center">
        <f-icon icon="Filter" size="14" type="element" />
        <div class="step-label">受众用户</div>
      </div>
      <div class="step-desc">公共属性满足1条 用户行为满足2条</div>
    </div>
    <div class="controller-container">
      <div class="controller-btn">
        <f-icon icon="CirclePlus" color="#ff0000" size="12" type="element" />
        分流
      </div>
      <div class="controller-btn">
        <f-icon icon="CirclePlus" color="#ff0000" size="12" type="element" />
        策略
      </div>
    </div>
  </div>
</template>

<script setup>
import { useAttrs } from 'vue'
const attrs = useAttrs()
console.log(attrs)
</script>

<style scoped>
.common-node {
  width: 300px;
  height: 150px;
  border-radius: 8px;
  border: 1px solid #ececec;
  background-color: #ffffff;
  box-sizing: border-box;
  padding: 10px;
  position: relative;
}
.node-title {
  font-size: 16px;
  color: #333333;
  font-weight: 600;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.container-1 {
  background-color: rgb(240, 247, 253);
  width: 100%;
  height: 45px;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 6px;
}
.container-2 {
  background-color: rgb(244, 244, 244);
  width: 100%;
  height: 45px;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 5px;
}
.step-label {
  font-size: var(--var-text-14);
  font-weight: 500;
  color: #333333;
  margin-left: 4px;
}
.step-desc {
  font-size: var(--var-text-14);
  font-weight: 400;
  color: #999999;
  margin-left: 18px;
}
.controller-container {
  width: 120px;
  height: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-sizing: border-box;
  border: 1px solid #eeeeee;
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: -60px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}
.controller-btn {
  font-size: 12px;
  vertical-align: middle;
}
</style>
